package com.canplay.screen.response

import com.canplay.screen.mode.DataInfo
import com.canplay.screen.network.HttpStateCode
import com.google.gson.annotations.SerializedName
import java.io.Serializable

data class AllDateResponse(
    val data:DataInfo,
    private var code:Int = -1,
    private val msg:String? = null
): BaseResponse<DataInfo>,Serializable {

    override fun isSuccess():Boolean{
        return code == HttpStateCode.SUCCESS || code == 0
    }

    override fun getResponseData() = data

    override fun getResponseCode() = code

    override fun getResponseMsg() = msg

}
